package auser;

import java.util.Date;
import java.util.List;

import com.db4o.Db4o;
import com.db4o.ObjectContainer;
import com.db4o.config.annotations.Indexed;
import com.db4o.query.Query;

import facades.SessionFacade;

public class Counters extends AuserClassAbstract {
	 
	private long current=0; 
	private int  anno=0;  
	private String className; 
	private Circolo circolo;
	private Date lastDate; 
	
	public Date getLastDate() {
		return lastDate;
	}
	
	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}
	public void setCurrent(long current) {
		this.current = current;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public int getAnno() {
		return anno;
	}
	public void setAnno(int anno) {
		this.anno = anno;
	}
	public Counters (Class clazz){
		this.className=clazz.getName();
		
	}
	
	public Counters (){
		
	}
	
	public Counters (Class clazz,int anno){
		this.className=clazz.getName();
		this.anno=anno;
	}
	 
	public long getCurrent() {
		return current;
	}
	 
	public long getNext(){
		current++;
		return current;
	}
	
		
	public Circolo getCircolo() {
		return circolo;
	}
	public void setCircolo(Circolo circolo) {
		this.circolo = circolo;
	}
}
